<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html>
<html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css"
	rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<head>
<base href="<%=basePath%>">

<title>学生自我信息查看</title>
<style>
div.container div.row div {
	margin: 5px 0px;
}

div.container div.row div {
	background-color: white;
	border: 1px solid white;
	text-align: center;
}
</style>
</head>
<body>
	<p>首页->导航栏->学生自我信息查看</p>
	<form method="post">
    <div class="row">
        	<div class="col-xs-4 " >
				<!--学生信息展示-->
					<table class="table" style="font-size:14px">
						<tr>
							<td>学号</td>
							<td><s:property value="#request.student.stunum"/></td>
						</tr>
						<tr>
							<td>姓名</td>
							<td><s:property value="#request.student.stuname"/></td>
						</tr>
						<tr>
							<td>性别</td>
							<td><s:if test="#request.student.sexnum=1">男</s:if>
								<s:if test="#request.student.sexnum=0">女</s:if></td>
						</tr>
						<tr>
							<td>专业</td>
							<td><s:property value="#request.clgname"/></td>
						</tr>
						<tr>
							<td>入学时期</td>
							<td><s:property value="#request.student.studate"/></td>
						</tr>
					</table>
				</div>
			 <div class="col-xs-6 " >
			 		<table class="table" width="100%">
			 		<s:if test="#request.cruObjects!=null">
			 			<p align="center" style="color:red;">你还没有选择任何课程</p>
			 		</s:if>
			 		<s:if test="#request.cruObjects==null">
			 			<tr style="font-size:14px">
			 				<th width="30%">所选课程</th>
			 				<th	width="20%">课程代码</th>
			 				<th width="10%">学分</th>
			 				<th width="20%">所属院系</th>
			 				<th width="20%">上课时间</th>
			 			</tr>
			 			<s:iterator value="#request.cruObjects">
			 			<tr style="font-size:13px">
			 				<td><s:property value="objname"/></td>
			 				<td><s:property value="objnum"/></td>
			 				<td><s:property value="credits"/></td>
			 				<td><s:property value="clgname"/></td>
			 				<td><s:property value="objtime"/></td>
			 				<td><s:property value="#request.allredits"/></td>
			 			</tr>
			 			</s:iterator>
			 			<tr>
			 		
			 			<td colspan="5" align="center" style="font-size:13px;">
							<div>
								<nav>
								  <ul class="pager"  style="margin:0px">
								    <li><a href="<s:url action="studentselfmessagemanger?currentPagechange=1"/>">首页</a></li>
								    <s:if test="#request.PageService.currentPage-2>0">
								    	 <li>
								    	 	<a href="<s:url action="studentselfmessagemanger?currentPagechange=%{#request.PageService.currentPage-2}"/>" id="li1" >
												<s:property value="#request.PageService.currentPage-2"/>
											</a>
										 </li>
								    </s:if>
								    <s:if test="#request.PageService.currentPage-1>0">
								    	 <li>
								    	 	<a href="<s:url action="studentselfmessagemanger?currentPagechange=%{#request.PageService.currentPage-1}"/>" id="li2" >
												<s:property value="#request.PageService.currentPage-1"/>
											</a>
										 </li>
								    </s:if>
								    <li><a><s:property value="#request.PageService.currentPage"/></a></li>
								    <s:if test="#request.PageService.currentPage+1<=#request.PageService.pageCount">
								    	 <li>
								    	 	<a href="<s:url action="studentselfmessagemanger?currentPagechange=%{#request.PageService.currentPage+1}"/>"  id="li3" >
												<s:property value="#request.PageService.currentPage+1"/>
											</a>
										 </li>
								    </s:if>
								     <s:if test="#request.PageService.currentPage+2<=#request.PageService.pageCount">
								    	 <li>
								    	 	<a href="<s:url action="studentselfmessagemanger?currentPagechange=%{#request.PageService.currentPage+2}"/>"  id="li4" >
												<s:property value="#request.PageService.currentPage+2"/>
											</a>
										 </li>
								    </s:if>
								    <li><a href="<s:url action="studentselfmessagemanger?currentPagechange=%{#request.PageService.pageCount}"/>">尾页</a></li>
								  </ul>
								</nav>
							</div>
			 			</tr>
			 			</s:if>
			 		</table>
			 </div>
			</div>
	</form>
</body>
</html>
